import "@nomicfoundation/hardhat-ethers";
import { ethers } from "hardhat";

const main = async () => {
    const Create = await ethers.getContractFactory("Create");

    const create = await Create.deploy() as unknown as {
        target: string;
        waitForDeployment: () => Promise<void>
    };
    await create.waitForDeployment()

    console.log("CONTACT_ADDRESS", await create.target);
    return create;
};

main().catch((error) => {
    console.log(error);
    process.exitCode = 1;
})
//npx hardhat run scripts/deploy.js --network polygon_amoy
//npx hardhat run scripts/deploy.js --network localhost